// interface Named {
//     name: string;
// }

// let x: Named;
// // y's inferred type is { name: string; location: string; }
// let y = { name: 'Alice', location: 'Seattle' };
// x = y;
// console.log(x)


// interface Named {
//     name: string;
//     location:string
// }

// let x: Named;
// // y's inferred type is { name: string; location: string; }
// let y = { name: 'Alice' };
// x = y;
// console.log(x)

let x = (a: number) => 0;
let y = (b: number, s: string) => 0;
console.log(x);
console.log(y);

y = x; // OK
// x = y; // Error
